﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace Nimble.Helpers
{
    public class DarkAndLightConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var rel = "";
            if (value == null)
            {
                rel = "Dark";
            }
            else
            {
                if ((bool)value)
                    rel = "Light";
                else
                    rel = "Dark";
            }

            return rel;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}